﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DanhSach.ascx.cs" Inherits="UserControl_TinTuc_DanhSach" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<link href="../../Css/MenuStyle.css" rel="stylesheet" type="text/css" />
<link href="../../Css/MenuStyle1.css" rel="stylesheet" type="text/css" />
<link href="../../Css/cssverticalmenu.css" rel="stylesheet" type="text/css" />
<div>
    <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" Width="100%">
        <FooterStyle  />
        <HeaderStyle />
        <HeaderTemplate>
            <div ID="page-main-content-title" class="detailheader" style="outline: 0;">
            &nbsp;<asp:Label ID="lblTitle" runat="server" CssClass="title-item" 
                Text='Tin tức'></asp:Label>
        </div>
        </HeaderTemplate>
        <ItemTemplate>
            <table width="100%">
                <tr>
                    <td colspan="2">
                        &nbsp;<asp:LinkButton ID="LinkButton1" runat="server" 
                            Text='<%# Eval("TieuDe") %>' PostBackUrl='<%# "~/News.aspx?ID=" + Eval("ID") %>'
                            CssClass="linkBold" Font-Bold="True"></asp:LinkButton>
                        <br />
                        <asp:Label ID="Label1" runat="server" Style="font-size: 10px; font-weight: 700;
                            color: #CCCCCC; font-style: italic;" Text='<%# Eval("NgayDang") %>'></asp:Label>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td valign="top" width="100%">
                        <asp:Image ID="Image1" runat="server" Height="130px" ImageUrl='<%# Eval("HinhAnh") %>'
                            Width="130px" ImageAlign="Left" />
                        <div class="description">
                            <asp:Label ID="Label2" runat="server" Font-Italic="true" Text='<%# Eval("GioiThieu") %>'></asp:Label>
                            ..<br/>(
                            <asp:LinkButton ID="LinkButton2" ForeColor="Blue" Font-Underline="False" runat="server"
                                Text="Đọc chi tiết" PostBackUrl='<%# "~/News.aspx?ID=" + Eval("ID") %>'></asp:LinkButton>)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <hr size="1" />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
</div>
<cc1:CollectionPager ID="CollectionPager1" runat="server" LabelText="Trang :" MaxPages="20"
    PageSize="7" ResultsFormat="">
</cc1:CollectionPager>
